package com.apa7.keepaccounts;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

@SpringBootApplication
@MapperScan("com.apa7.keepaccounts.dao")
public class KeepaccountsApplication extends SpringBootServletInitializer {//tomcat部署
//public class KeepaccountsApplication {

	public static void main(String[] args) {
		SpringApplication.run(KeepaccountsApplication.class, args);
	}

	/*
	* Tomcat部署
	* */
	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
		// TODO Auto-generated method stub
		return builder.sources(KeepaccountsApplication.class);

	}

}
